<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<?php echo $this->headTitle() . PHP_EOL; ?>

<link href="themes/azure/style.css" rel="stylesheet" type="text/css" />
<link href="themes/css/core.css" rel="stylesheet" type="text/css" />
<link href="themes/css/ig.core.css" rel="stylesheet" type="text/css" />
<link href="scripts/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" />
<![endif]-->

<script src="scripts/ig/ig.core.js" type="text/javascript"></script>
<script src="scripts/jquery/jquery.js" type="text/javascript"></script>
<script src="scripts/jquery/jquery.cookie.js" type="text/javascript"></script>
<script src="scripts/jquery/jquery.validate.js" type="text/javascript"></script>
<script src="scripts/jquery/jquery.bgiframe.js" type="text/javascript"></script>
<script src="scripts/xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>
<script src="scripts/uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="scripts/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<script src="scripts/dwz/dwz.min.js" type="text/javascript"></script>
<script src="scripts/dwz/dwz.ui.js" type="text/javascript"></script>
<script src="/js/dwz.my.js" type="text/javascript" ></script>
<script src="/js/config" type="text/javascript" ></script>
<script type="text/javascript">
$(function(){
	DWZ.init("dwz.frag.xml", {
		loginUrl:"/auth/login", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"login.html",	// 跳到登录页面
		statusCode:{ok:0, error:1, timeout:300}, //【可选】
		pageInfo:{pageNum:"page", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"themes"}); // themeBase 相对于index页面的主题base路径
		}
	});
	tip.showTip();
});

</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="#">标志</a>
				<ul class="nav">
					<li id="switchEnvBox"><a href="javascript:">切换系统</a>
						<ul>
							<li><a href="sidebar_1.html">客服</a></li>
							<li><a href="sidebar_2.html">ＧＭ</a></li>
							<li><a href="sidebar_2.html">运维</a></li>
						</ul>
					</li>
                    <li><a>欢迎 <?=$this->identity->getRealName()?></a></li>
                    <li><a href="/system/employee/my" target="dialog" width="600">设置</a></li>
					<li><a href="/auth/logout">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
                    <li theme="azure"><div class="selected">天蓝</div></li>
					<li theme="default"><div>蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<!--<li theme="red"><div>红色</div></li>-->
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
				</ul>
			</div>

			<!-- navMenu -->

		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">

                  <?php foreach ($this->modules as $module):
                        if ($module['parent_id'] != 0) continue;?>
                    <div class="accordionHeader">
						<h2><span>Folder</span><?=$module['title']?></h2>
					</div>
					<div class="accordionContent">
                            <?php echo $this->dwzTree($this->modules, $module['id'], 'class="tree treeFolder"');?>
					</div>
                  <?php endforeach; ?>
				</div>

			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent">
					<div class="accountInfo"><p>
						我的角色:
                        <?php
                        foreach ($this->identity->getRoles() as $role)
							echo $role->getTitle() , ',';
						?></p>
					</div>

				</div>
			</div>
		</div>

	</div>

</body>
</html>
